#ifndef PASSWORDSMODEL_H
#define PASSWORDSMODEL_H

#include <QAbstractTableModel>
#include <QSettings>

static bool s_show_passwords = false;

class PasswordsModel : public QAbstractTableModel
{
    Q_OBJECT

public:
    PasswordsModel(QObject *parent = 0);
    ~PasswordsModel();
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
    int columnCount(const QModelIndex &parent = QModelIndex()) const;
    int rowCount(const QModelIndex &parent = QModelIndex()) const;
    bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());

private:
    QSettings   m_data;

};

#endif // PASSWORDSMODEL_H
